﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 修改人：x
 * 时间：
 * 修改说明：
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using seejee_Backendium.Core.Models;

namespace seejee_Backendium.Core.Interfaces
{
    public interface IChartService
    {
        /// 保存主表信息
        Task<int> SaveBIMainTableAsync(string name, string createdAt, string cusName);

        /// 保存数字翻牌器配置
        Task<bool> SaveFlipNumberConfigAsync(
            string itemId, string type, int span, int height,
            string title, string titleColor, int titleSize,
            string valueColor, int valueSize, string unit, int unitSize,
            string iconImage, string iconColor, string iconSize,string ringColor, string ringValue, string iconPosition, bool thousandSeparator, string cusName, int BIMainTableId,
            string backgroundColor,string backgroundStyle ,string leftunit,string leftunitsize,int sort ,string sql);
        /// 批量处理并保存图表数据
        Task<Dictionary<string, object>> ProcessAndSaveChartDataAsync(JObject jsonData);
        Task<string> GetDashboardConfigAsync();
        Task<LineDataDTO> GetLineData(string cCusName, string cCusTableName, string xAxis, string yAxis);
        Task<string> RenderChartAsync(List<string> sqlList);
    }

}
